package com.lyh.hkcloud.module.common;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

/**
 * @author: zhongfan
 * @program: hkCloud
 * @description: 接收广播
 * @company—date: 利元数据 2022-02-14 09:46
 **/
public class OrderReceiver extends BroadcastReceiver {


    private final String TAG = "barcode_string";

    @Override
    public void onReceive(Context context, Intent intent) {

        //取出上一优先级的Receiver传递来的数据
        String msg = intent.getStringExtra(TAG);
        Log.e(TAG, "从上一优先级的Receiver传递来的数据--" + msg);

        //向下一优先级的Receiver传递数据
        Bundle bundle = new Bundle();
        bundle.putString("Data", "（叶应是叶）");

    }
}
